﻿<%@ Page Title="药品信息" Language="C#" MasterPageFile="~/Master/MasterPage_New.master"
    AutoEventWireup="true" CodeBehind="CompanyGoodsList_sc.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.CompanyGoodsList_sc" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicinemodel" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                采购规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtPack" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                采购单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" MaxLength="25" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                排序方式：
                            </td>
                            <td align="left">
                                <asp:DropDownList ID="droSortField" runat="server" Height="19px" Width="112px">
                                    <asp:ListItem Value="PurchaseCount asc">采购数量 升序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseCount desc">采购数量 降序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmountTotal asc">采购金额 升序</asp:ListItem>
                                    <asp:ListItem Value="PurchaseAmountTotal desc">采购金额 降序</asp:ListItem>
                                    <asp:ListItem Value="DistributeCountTotal asc">配送数量 升序</asp:ListItem>
                                    <asp:ListItem Value="DistributeCountTotal desc">配送数量 降序</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmountTotal asc">配送金额 升序</asp:ListItem>
                                    <asp:ListItem Value="DistributeAmountTotal desc">配送金额 降序</asp:ListItem>
                                    <asp:ListItem Value="DistributeRate asc">配送率 升序</asp:ListItem>
                                    <asp:ListItem Value="DistributeRate desc">配送率 降序</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </td>
                <td width="100px">
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" SkinID="search"
                        ToolTip="点击查询符合条件的数据" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwGoods" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无有效的信息！" PageSize="24" OnRowDataBound="gvwGoods_RowDataBound"
        OnRowCommand="gvwGoods_RowCommand">
        <Columns>
            <asp:BoundField HeaderText="流水号" DataField="ProcureCatalogID" />
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="类别" DataField="SortName" />
            <asp:BoundField HeaderText="通用名" DataField="ProductName" />
            <asp:BoundField HeaderText="剂型" DataField="MedicineModelName" />
            <asp:BoundField HeaderText="采购规格" DataField="Pack" />
            <asp:BoundField HeaderText="采购单位" DataField="Unit" />
            <asp:BoundField HeaderText="生产企业" DataField="CompanyName_SC" />
            <asp:BoundField HeaderText="采购数量" DataField="PurchaseCountTotal" />
            <asp:BoundField HeaderText="采购金额" DataField="PurchaseAmountTotal" />
            <asp:BoundField HeaderText="配送数量" DataField="DistributeCountTotal" />
            <asp:BoundField HeaderText="配送金额" DataField="DistributeAmountTotal" />
            <asp:BoundField HeaderText="配送率" DataField="DistributeRate" DataFormatString="{0:P}" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="linkCompanyGoodsDetailsc" runat="server" CommandName="CompanyGoodsDetail"
                        CommandArgument='<%#Eval("ProcureCatalogID") %>' Text="详情"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
